package org.finesys.common.log.config;

import org.finesys.common.log.filter.LogHelperWebFluxFilter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.config.WebFluxConfigurer;

@ConditionalOnClass(WebFluxConfigurer.class)
@Configuration
public class WebFluxConfiguration {

    @Bean
    public LogHelperWebFluxFilter logHelperWebFluxFilter() {
        return new LogHelperWebFluxFilter();
    }
}
